/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package trinomialtree.math;

import java.util.ArrayList;
import java.util.List;
import java.util.Queue;


public class Node {


	public int i;
	public int j;

	public Node up;
	public Node middle;
	public Node down;

	public double p_u;
	public double p_m;
	public double p_d;

	public double bondValue;

        public double swapValue;

	public double putValue;

	public double callValue;

	public List<Node> parentNodes = new ArrayList<Node>();

	//Instrument Q
	public double Q;

	//Zins r
	public double r;

	//x_j Wert
	public double x_j;

	//m_j Wert
	public double m_j;

	//eta_j Werte
	public double eta_j;

	//k Werte
	public int k;

	//alpha Wert
	public double alpha;



        public int getXCoordinate(int depth) {

            return 0;
        }

        public int getYCoordinate(int depth) {

            return 0;
        }



	public Node(int i, int j)  {
		this.i = i;
		this.j = j;

		System.out.println("Created node ("+i+","+j+")");
	}


	public String toString() {
		return "Node [i=" + i + ", j=" + j + "] Q: " + Q + " r: " + r;
	}


        public List getParentNodes () {
            return this.parentNodes;
        }




}
